package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户银行卡
 * </p>
 *
 * @author lst
 * @since 2018-12-07
 */
@TableName("ACTIVITY")
public class Activity implements Serializable{
    /**
     * 活动id
     */
    @TableId(value = "ACTIVITY_ID", type = IdType.ID_WORKER)
    private Long activityId;
    /**
     * 活动名称
     */
    @TableField(value = "ACTIVITY_NAME")
    private String activityName;
    /**
     * 活动简介
     */
    @TableField(value = "ACTIVITY_NOTE")
    private String activityNote;
    /**
     * 活动折扣力度
     */
    @TableField(value = "ACTIVITY_DISCOUNT")
    private Double activityDiscount;
    /**
     * 活动开始时间
     */
    @TableField(value = "START_TIME")
    private Date startTime;
    /**
     * 活动结束时间
     */
    @TableField(value = "END_TIME")
    private Date endTime;

    /**
     * 是否过期
     */
    @TableField(value = "IS_TIMEOUT")
    private Integer isTimeout;


    public Long getActivityId() {
        return activityId;
    }

    public void setActivityId(Long activityId) {
        this.activityId = activityId;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public String getActivityNote() {
        return activityNote;
    }

    public void setActivityNote(String activityNote) {
        this.activityNote = activityNote;
    }

    public Double getActivityDiscount() {
        return activityDiscount;
    }

    public void setActivityDiscount(Double activityDiscount) {
        this.activityDiscount = activityDiscount;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getIsTimeout() {
        return isTimeout;
    }

    public void setIsTimeout(Integer isTimeout) {
        this.isTimeout = isTimeout;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "activityId=" + activityId +
                ", activityName='" + activityName + '\'' +
                ", activityNote='" + activityNote + '\'' +
                ", activityDiscount=" + activityDiscount +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", isTimeout=" + isTimeout +
                '}';
    }
}
